import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 引入全局样式
import "@/styles/reset.scss"
import "@/styles/common.scss"
// iconfont
import "@/assets/iconfont/iconfont.scss"

// 引入iconfont
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// vue i18n
import I18n from "@/languages/index"
const pinia = createPinia()
const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.use(I18n)
app.mount('#app')
